<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('变更用户身份')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-user-switchUserAmount" th:object="${user}">
        <input name="userId" type="hidden" th:value="${user.userId}" />
        <div class="form-group">
            <label class="col-sm-3 control-label ">用户身份：</label>
            <div class="col-sm-8">
                <select name="userIdentity">
                    <option value="0">试用</option>
                    <option value="1">正式</option>
                    <option value="2">金牌</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">是否试用：</label>
            <div class="col-sm-8">
                <select name="approvalFlag">
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">是否购买工装：</label>
            <div class="col-sm-8">
                <select name="frockFlag">
                    <option value="0">未购买</option>
                    <option value="1">已购买</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label ">期限(天)：</label>
            <div class="col-sm-8">
                <input name="term" type="text" value="0">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">保证金(元)：</label>
            <div class="col-sm-8">
                <input name="ensureAccount" type="text" value="0">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    $("#form-user-switchUserType").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(ctx + "system/user/updateUserIdentity", $('#form-user-switchUserAmount').serialize());
        }
    }
</script>
</body>

</html>
